package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the cate_target database table.
 * 
 */
@Entity
@Table(name="cate_target")
public class CateTarget implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int ctpk;

	//bi-directional many-to-one association to Category
    @ManyToOne
	@JoinColumn(name="categoryid")
	private Category category;

	//bi-directional many-to-one association to Target
    @ManyToOne
	@JoinColumn(name="targetid")
	private Target target;

    public CateTarget() {
    }

	public int getCtpk() {
		return this.ctpk;
	}

	public void setCtpk(int ctpk) {
		this.ctpk = ctpk;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	public Target getTarget() {
		return this.target;
	}

	public void setTarget(Target target) {
		this.target = target;
	}
	
}